package com.jxnu.escms.Service.InOutService;

import com.jxnu.escms.Pojo.InOutRecord;
import com.jxnu.escms.Pojo.PageResult;

import java.util.List;
import java.util.Map;

public interface InOutService {
    /**
     * 添加出入申请记录
     * @param data
     * @return
     */
    public int addApply(Map<String, Object> data);

    /**
     * 查询用户的申请记录
     * @param id
     * @param start
     * @param pageSize
     * @return
     */
    public PageResult<InOutRecord> queryRecord(int id, int start, int pageSize);

    public int deleteRecord(int userId, String time);

    public PageResult<InOutRecord> getRecords(int adminId, int start, int pageSize, int kill);

    public int auditRecord(int id, String result);

    public int addControlRecord(int adminId, int record, String type);

    public List<InOutRecord> filterRecords(int adminId, int kill);

    public int deleteById(int id);
}
